f = None
try:
    f = open('readme.txt','r')
    print(f.read())
except IOError:
    print('Error')
finally:
    if f:
        f.close()